//
//  HuangwwFaceAndGestureTool.h
//  Pods
//
//  Created by huangwenwu on 2020/1/14.
//

#import <Foundation/Foundation.h>
#import "HuangwwAuthID+HwwShowAuthID.h"
#import <UIKit/UIKit.h>
#import "XQCUnlockViewController.h"
@class RACSignal;
NS_ASSUME_NONNULL_BEGIN

@interface HeaderImageView : UIView

@property (nonatomic,strong)UIImageView *headerImageView;
@property (nonatomic,strong)UIImageView *VImageView;
- (id)initWithSize:(CGSize)size Vsize:(CGSize)vsize;
// 更新数据
- (void)setUpdateHeaderImage;
@end

#define HuangwwFaceAndGestureToolManager [HuangwwFaceAndGestureTool defaultManager]

@interface HuangwwFaceAndGestureTool : NSObject

+ (instancetype)defaultManager;

/// 人脸识别
+ (RACSignal *)FaceRecognition;
/**
 移除指纹或faceid保存信息
 */
+ (void)faceRemoveAuthID;

/// 手势识别
+ (void)gestureRecognition;

/**
 获取用户头像

 @param size 图片大小
 @param vsize 认证v图标大小
 @return HeaderImageView
 */
- (HeaderImageView *)getUserHeaderImageWithSize:(CGSize)size Vsize:(CGSize)vsize;

+ (void)showLoginViewSuccessBlock:(void(^)(void))LoginSuccess;

+ (void)hidenLoginView;

//  手机号限制
+ (BOOL)PhoneTextField:(UITextField *)textField Range:(NSRange)range replacementString:(NSString *)string;

+ (void)showUnlockView:(UIWindow *)window;

+ (void)hidenUnlockView;

+ (BOOL)gestureON;


@end

NS_ASSUME_NONNULL_END
